
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>赋值运算符</title>
</head>
<body>

</body>
</html>

<!-- <script>
	var num = 10+20;
	num = num+20;
	num += 20;
	num -= 30;
	num *=20;
	alert(num)

</script> -->


<script>
//	var a =10;
//	alert( a++ + ++a + a + ++a + a++ + a);
	//a=10  a--=10  a=9;
	//a=9  --a=8  a=8;
	//a=8;
	//--a=7 a=7
	//a--=7 a=6;
	//a=6
	//10+8+8+7+7+6=46

//	入职的薪水是10k，每年涨幅入职薪水的5%， 计算20年后的薪资水平
	var money=10000;
	for (var i = 1; i <= 20; i++) {
		money+=money*0.05;
	}
	alert(money)
	
</script>
